<oc-dialog oc-dialog-is-full="true"
	oc-dialog-switch="MS"
	oc-dialog-icon="lemoncelogo"
	oc-dialog-title="{{'LemonCase2 Editor v' + version.v}}">
	<div class="grid" ng-controller="Master">
		<div ng-controller="CaseTest" class="grid"
		    ng-if="mode === 'case'"
			style="height:100%;width:100%"
			ng-include="patchUrl+'case/caseTest.html'"></div>
		<div ng-controller="Task" class="grid"
			ng-if="mode === 'task'"
			style="height:100%;width:100%"
			ng-include="patchUrl+'task/task.html'"></div>
		<div class="grid" style="top:2.5rem;left:0"
			ng-style="{right:isInactive?'0':'20rem',bottom:isMin?'1rem':'12rem'}"
			id="project"></div>
		<form ng-submit="cmdIn()"
			id="console" class="grid"
			ng-class="{'full':isConsoleFull,'min':isMin}"
			style="bottom:0;left:0;right:20rem;border-top:1px solid #aaa;overflow:hidden">
			<button style="visibility:hidden" type="submit"></button>
			<nav class="oc-toolbar"
				ng-dblclick="isMin=false"
				ng-style="{background:isMin?'#ccc':'#fff'}"
				style="width:2rem;border:solid #aaa;border-width:0 1px;z-index:20;height:100%">
				<button class="ico trash" ng-click="console.clear()"></button>
				<button class="full-screen ico"
					ng-hide="isConsoleFull"
					ng-click="isConsoleFull=true" title="平铺"></button>
				<button class="ico restore"
					ng-show="isConsoleFull"
					ng-click="isConsoleFull=false" title="还原"></button>
				<button class="ico"
					ng-hide="isMin"
					ng-click="isMin=true" title="隐藏">小</button>
			</nav>
			<oc-list style="right:0;top:0;bottom:1rem;border-width:0 0 1px 0;left:2rem;">
				<oc-row ng-repeat="l in console.log" class="{{l.level}}">
					<oc-col label="消息" width="670"
						class="console-message">{{l.message}}</oc-col>
					<oc-col label="时间" width="90" locked
						style="color:#999">{{l.time|date:'hh:mm:ss.sss'}}</oc-col>
				</oc-row>
			</oc-list>
			<input ng-model="commandText"
				class="input"
				ng-keypress="revertCmd($event)"
				style="left:2rem;height:1rem;bottom:0;border:none;width:100%" />
		</form>
	</div>
</oc-dialog>
